<?php
require_once('../libs/simplepie.inc.php');
$feed = new SimplePie();
$feed->set_feed_url('http://bloguons-ensemble.skyrock.com/rss.xml');
$feed->enable_cache(true);
$feed->set_cache_location('../cache');
$feed->handle_content_type();
$feed->init();


echo '<ul class="resume">';
	foreach ($feed->get_items() as $item) {
	if ($itemlimit==5) { break; }
	?>
	<li><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></li>
	<?php
	$itemlimit++;
	}
	?>
	</ul>